/*
 * Copyright (c) 2020-2099 the original author or authors. All rights reserve.
 */
package org.tianyun.cloud.exception;

/**
 * 异常处理接口定义
 *
 * @auther ebert_chan
 */
public interface ExceptionContextAware {

    /**
     * 处理异常
     *
     * @param throwable
     * @return
     * @auther ebert_chan
     */
    Object feedback(Throwable throwable);

    /**
     * 处理特定异常码
     *
     * @param code
     * @param args
     * @return
     * @auther ebert_chan
     */
    Object feedback(String code, Object... args);

}
